import Vue from 'vue'
import App from './App'
import store from './store'
import {fixD, formatD, Desensitization,bigNumberTransform,thousands,copyTxt} from '@/util/utils'


import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import {commonMixin} from './common/mixin/mixin'
Vue.mixin(commonMixin)

import * as filters from '@/common/filters'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.prototype.$store = store;
Vue.prototype.$fixD = fixD;
Vue.prototype.$util = {Desensitization,bigNumberTransform,thousands,copyTxt};
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})

// 引入请求封装，将app参数传递到配置中
require('common/config/request.js')(app)

app.$mount()
